/**
 * 
 */
package com.manthano.util.web.converter;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.manthano.util.web.service.ServiceRequestConverter;
import com.manthano.util.web.service.bo.ServiceRequest;

/**
 * @author DELL
 */
public class RestRequestConverter implements ServiceRequestConverter
{
	@SuppressWarnings("unchecked")
	public ServiceRequest getServiceRequest(HttpServletRequest request)
	{
		ServiceRequest serviceRequest = new ServiceRequest();
		serviceRequest.setMethod(request.getParameter("method"));
		serviceRequest.setParams(request.getParameterMap());
		return serviceRequest;
	}

	public List<ServiceRequest> getServiceRequests(HttpServletRequest request)
	{
		return null;
	}

}
